package com.scholarship.modules.backend.mapper;


import com.scholarship.modules.backend.dao.Teacher;
import com.scholarship.modules.backend.entity.TeacherAuthority;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhz
 * @date 2021/7/30 15:36
 * 备注：获取教师权限接口
 */
@Repository
public interface TeacherAuthorityMapper {
    //查看教师操作表的权限
    Integer getTableAuthority(String userId);

    //查看教师操作班级的权限
    String getClassAuthority(String userId);

    //修改老师修改表的权限
    Integer setTableAuthority(String userId, Integer tableIds);

    //赋予老师对表和班级操作的权限
    Integer insertTableAuthority(TeacherAuthority teacherAuthority);

    //列出所有老师的信息
    List<TeacherAuthority>  listAllTeachers();

    //删除老师账号
    Integer deleteTeacher(String userId) throws Exception;
}
